package net.sk.china.platform.service.user;

import com.baomidou.mybatisplus.extension.service.IService;
import net.sk.china.platform.model.user.UserGroup;
import net.sk.china.platform.request.user.UserGroupRequest;
import net.sk.china.common.request.PageParamRequest;

import java.util.List;

/**
 * UserGroupService 接口 用户分组
 * +----------------------------------------------------------------------
 * // | Talk To [ 聊来改善地区金融服务环境，助力企业发展 ]
 * // +----------------------------------------------------------------------
 * // | Copyright (c) 2018-2024 聊来 All rights reserved.
 * // +----------------------------------------------------------------------
 * // | Licensed ( <a href="http://www.apache.org/licenses/LICENSE-2.0">apache</a> )
 * // +----------------------------------------------------------------------
 * // | @Author: 聊来 <18970881148@qq.com>
 * // +----------------------------------------------------------------------
 * // | DateTime: 2024/6/3 15:49
 * // +----------------------------------------------------------------------
 */
public interface UserGroupService extends IService<UserGroup> {

    /**
     * 用户 - 分组列表
     * @param pageParamRequest 分页参数
     * @return List<UserGroup>
     */
    List<UserGroup> getList(PageParamRequest pageParamRequest);

    /**
     * 新增用户分组
     * @param userGroupRequest 分组参数
     * @return Boolean
     */
    Boolean create(UserGroupRequest userGroupRequest);

    /**
     * 修改用户分组
     * @param id 分组id
     * @param userGroupRequest 修改参数
     * @return Boolean
     */
    Boolean edit(Integer id, UserGroupRequest userGroupRequest);

    /**
     * 根据分组ID获取分组名称
     * @param groupIdValue 分组ID
     * @return String
     */
    String getGroupNameInId(String groupIdValue);
}
